package com.gopay.common.domain.cbrmb.remitperson;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * 跨境人民币 汇款收款方信息表
 * @CbRmbRemitPerson.java
 * @author nierongzhang
 * @2017-09-06 上午11:28:15  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CB_RMB_REMIT_PERSON")
public class CbRmbRemitPerson extends BaseEntity {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -8886869263308956213L;

    /**
     * 记录流水号
     */
    @Id
    @SequenceGenerator(name="CB_RMB_REMIT_PERSON_SEQ",sequenceName="CB_RMB_REMIT_PERSON_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CB_RMB_REMIT_PERSON_SEQ")
    @Column(name="CB_RMB_REMIT_PERSON_SQ", unique=true, nullable=false)
    private Integer sq;

    /**
     * 合法名称
     */
    @Column(name="COMPANYNAME")
    private String companyName;

    /**
     * 地址
     */
    @Column(name="ADDRESS")
    private String address;

    /**
     * 城市
     */
    @Column(name="CITY")
    private String city;

    /**
     * 创建时间
     */
    @Column(name="CREATE_TIME")
    private Date createTime;

    /**
     * 最后修改时间
     */
    @Column(name="LAST_UPDATE_TIME")
    private Date lastUpdateTime;

    /**
     * 删除标识：0为有效，1为删除
     */
    @Column(name="ISDELETE")
    private String isDelete;

    /**
     * 乐观锁版本号
     */
    @Version
    @Column(name="VERSION")
    private int version;

    public Integer getSq() {
        return sq;
    }

    public void setSq(Integer sq) {
        this.sq = sq;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    

}
